package com.flower.ApiGateway.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.flower.ApiGateway.entity.HttpResponseBean;
import com.flower.ApiGateway.entity.UserEntity;
import com.flower.ApiGateway.service.UserService;

@RestController
@RequestMapping("/v1/user")
public class UserController {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping(value ="register")
	public HttpResponseBean addUser(@RequestBody UserEntity userEntity) {
		return userService.saveUser(userEntity);
	}

}
